$(function () {
    $(":checkbox").click(function () {
        if (!this.checked) {
            $("#selectFirstAllBtn").attr("checked", false);
        }
        var resultFirstNum = $("input[type='checkbox']:checked").length;
        $('#selectAllNum').html(resultFirstNum);
    });

    $('#submitContent').click(function () {
        var firstSelectNum = new Array();
        $(':checked').each(function () {
            firstSelectNum.push($(this).val());//向数组中添加元素
        });
        console.log(firstSelectNum.join(','))
    })
    $('.right-item-img').click(function () {
        window.location.href = "chooseSecondRec.html";
    })
})
